package com.mgface.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project springcloudCollection
 * @create 2018-08-16 11:20
 **/
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients

@EnableHystrix
//单应用配置熔断器监控,如果使用spring cloud admin的turbine展示数据，则可以不需要
//@EnableHystrixDashboard
//hystrix dashboard：http://localhost:port/hystrix
//hystrix数据地址：http://localhost:port/hystrix.stream
public class CloudFeignApplication {
    public static void main(String[] args) {
        SpringApplication.run(CloudFeignApplication.class,args);
    }
}
